package com.yesin.geteway.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum  ExceptionEnum {
    BRAND_CANNOT_BE_NULL(400, "品牌不存在!"),
    GATEGORY_NOT_FOND(404, "商品分类不存在"),
    BRAND_SAVE_ERROR(500, "新增品牌失败"),
    BRAND_UPDATE_ERROR(500, "修改品牌失败"),
    BRAND_DELETE_ERROR(500, "删除商品失败"),
    UPLOAD_FILE_TYPE(500, "文件上传失败"),
    INVALID_FILE_TYPE(500, "无效的文件类型"),
    GROUPSPEC_NOT_FOUND(500, "规格参数组不存在!"),
    SKU_NOT_FOUND(500, "SKU不存在！"),
    SKU_DELETE_FAIL(500, "商品删除失败！")
    ;
    private int code;
    private String msg;
}
